<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    x:Class="OpenLS.Spreadsheet.UI.SpreadsheetApplicationMenuResources"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI"
    xmlns:oui="http://schemas.Kherty.com/office/2007"
    xmlns:os="clr-namespace:OpenLS.UI;assembly=OpenLS.UI"
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
    xmlns:Resources="clr-namespace:OpenLS.Spreadsheet.UI.Internals.Resources">
  <ResourceDictionary.MergedDictionaries>
    <oui:MenuResources/>
        <os:RecentlyUsedDocumentResources/>
        <!--<ResourceDictionary Source="/OpenLS.UI;component/MRUFileResources.xaml"/> -->
  </ResourceDictionary.MergedDictionaries>
  <os:ApplicationMenu DockPanel.Dock="Top" 
                       Margin="8 0 0 0" x:Key="{x:Static ssui:SpreadsheetWindowComponents.ApplicationMenuKey}" AccessKey="F"
                       DataContext="{Binding RelativeSource={RelativeSource Self}, Path=(ssui:SpreadsheetElement.Workbook)}"
                      Header="{x:Static Resources:UIStringTable.File}">
   <!-- <os:ApplicationMenu.Header>
      <Image Source="Spreadsheet.png" Height="24" Width="24"/>
    </os:ApplicationMenu.Header> -->
    <os:ApplicationMenu.Footer>
      <DockPanel LastChildFill ="False">
        <Button DockPanel.Dock="Right" Command="{x:Static oui:OfficeApplicationCommands.Exit}" Content="{x:Static Resources:UIStringTable.Exit_}"></Button>
        <Button DockPanel.Dock="Right" Command="{x:Static oui:OfficeApplicationCommands.Options}"  Content="{x:Static Resources:UIStringTable.Options_}"></Button>
      </DockPanel>
    </os:ApplicationMenu.Footer>
    <os:ApplicationMenu.RightContent>
      <ItemsControl ItemsSource="{Binding Path=(ssui:SpreadsheetWindow.RecentlyUsedDocumentManager).Documents, RelativeSource={RelativeSource Self}}" >
        
      </ItemsControl>
    </os:ApplicationMenu.RightContent>
    <MenuItem Header="{x:Static Resources:UIStringTable.New_}" Command="{x:Static ApplicationCommands.New}">
    </MenuItem>
    <MenuItem Header="{x:Static Resources:UIStringTable.Open_}" Command="{x:Static ApplicationCommands.Open}"/>
      <MenuItem Header="{x:Static Resources:UIStringTable.Save_}" Command="{x:Static ApplicationCommands.Save}">
      </MenuItem>
      <MenuItem Header="{x:Static Resources:UIStringTable.SaveAs_}" Command="{x:Static ApplicationCommands.SaveAs}">
      </MenuItem>

    <!--      <MenuItem Header="Save as _Xps" Command="{x:Static ssui:SpreadsheetCommands.SaveAsXps}" >

        <MenuItem.Icon>
          <Rectangle Fill="White" Width="24" Height="24" Stroke="Black"/>
        </MenuItem.Icon>
      </MenuItem> -->
    <MenuItem Header="{x:Static Resources:UIStringTable.Print_}" Command="{x:Static ApplicationCommands.Print}" Tag="ppr" >
        </MenuItem>
      <MenuItem Command="{x:Static ApplicationCommands.Close}" Header="{x:Static Resources:UIStringTable.Close_}">
      </MenuItem>
  </os:ApplicationMenu>


</ResourceDictionary>